package com.loveyukari.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
*
*yangshaohua
*2016年12月13日上午11:11:13
**/
public class Liwu {
	private Integer id;
	private Integer gfid;
	private Integer uid;
	private Auth auth;
	private int hits;
	private Date giveTime;
	private int status;
	private LiwuStyle liwuStyle;
	
	public LiwuStyle getLiwuStyle() {
		return liwuStyle;
	}
	public void setLiwuStyle(LiwuStyle liwuStyle) {
		this.liwuStyle = liwuStyle;
	}
	public Date getGiveTime() {
		return giveTime;
	}
	public void setGiveTime(Date giveTime) {
		this.giveTime = giveTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getGfid() {
		return gfid;
	}
	public void setGfid(Integer gfid) {
		this.gfid = gfid;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	
	public Auth getAuth() {
		return auth;
	}
	public void setAuth(Auth auth) {
		this.auth = auth;
	}
	public int getHits() {
		return hits;
	}
	public void setHits(int hits) {
		this.hits = hits;
	}
	
	
	
	public List<Integer> getHitList(){
		List<Integer> list = new ArrayList<Integer>();
		int hits = this.hits;
		while(hits != 0){
			list.add(0,hits%10);
			hits = hits/10;
		}
		return list;
	}
	
	
}
